﻿/*
    Copyright Rain-Soft co.2009 
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rmlife.Model
{
    /// <summary>
    /// 系统用户信息实体
    /// </summary>
    [Serializable]
    public class AccountInfo : ExtAccountInfo
    {
        /// <summary>
        /// 账号ID
        /// </summary>
        public int iAccountid { get; set; }
        /// <summary>
        /// 登录名
        /// </summary>
        new public string sLoginName { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        public string sLoginPwd { get; set; }
        /// <summary>
        /// 支付密码
        /// </summary>
        public string sPayPwd { get; set; }
        /// <summary>
        /// 账户类型
        /// </summary>
        public string sAccountTypeCode { get; set; }
        /// <summary>
        /// 回答问题答案
        /// </summary>
        public string sSecAnswer { get; set; }
        /// <summary>
        /// MD5密钥
        /// </summary>
        public string sMD5Key { get; set; }
        /// <summary>
        /// 公共证书二进制流的Base64编码
        /// </summary>
        public string sPublicCertificate { get; set; }
        /// <summary>
        /// 问题编号
        /// </summary>
        public int iSecID { get; set; }
        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime dtLastUpdate { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime dtRegisterDate { get; set; }

        /// <summary>
        /// 神盾编号
        /// </summary>
        public string sUsbFlag { get; set; }
        /// <summary>
        /// 神盾码
        /// </summary>
        public string sUsbPass { get; set; }
        /// <summary>
        /// 是否绑定神盾
        /// </summary>
        public int bUseUsbKey { get; set; }

        #region 扩展


        /// <summary>
        /// 在线状态
        /// </summary>
        public int iOnlinestate { get; set; }
        /// <summary>
        /// 注册IP
        /// </summary>
        public string sRegIP { get; set; }
        /// <summary>
        /// 最后访问时IP
        /// </summary>
        public string sLastIP { get; set; }
        /// <summary>
        /// 新短消息数量
        /// </summary>
        public int iNewPm { get; set; }
        /// <summary>
        /// 最后访问时间
        /// </summary>
        public DateTime dtLastVisit { get; set; }      
        /// <summary>
        /// 用户权限ID
        /// </summary>
        public int iAdminid { get; set; }
        /// <summary>
        /// 用户组ID
        /// </summary>
        public int iGroupid { get; set; }
        /// <summary>
        /// 扩展用户组集
        /// </summary>
        public string sExtGroupids { get; set; }

        #endregion
    }
}
